// Add two numbers in C++ using classes
# include <iostream.h>
# include <conio.h>

class Adder {
  int a,b;
public:
  void getNumbers() {
    cout << "Enter the first number: ";
    cin >> a;
    cout << "Enter the second number: ";
    cin >>b;
  }
  void displayResult () {
    cout << "The sum of two numbers is: " << (a+b);
  }
};

void main() {
  clrscr();
  Adder adder;
  adder.getNumbers();
  adder.displayResult();
  getch();
}